import logo from './logo.svg';
import './App.css';
import React from 'react';


function App (prop) {
  let hello = "你好"
  function say () {
    alert(1)
  }
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} onClick={this.say} className="App-logo" id="kk" alt="logo" />
        <p>
          {hello} {prop.sex}
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
    </div>
  );
}

export default App;
